package com.netwrok.mem;

import java.nio.ByteBuffer;

import com.ex.common.ObjectFactory;
import com.ex.common.ObjectPool;

public class BytesPool extends ObjectPool<ByteBuffer> {

	public BytesPool(ObjectFactory<ByteBuffer> factory, int initSize, int maxSize) {
		super(factory, initSize, maxSize);
	}

	private static ObjectPool<ByteBuffer> pool = new BytesPool(new BytesFactory(), 1024, 4096);

	public static ObjectPool<ByteBuffer> getPool() {
		return pool;
	}

}